import { ILoginState } from "./types";
import { IRootState } from "@/store/types";
import { Module } from "vuex";

const login: Module<ILoginState, IRootState> = {
  namespaced: true,
  state() {
    return {
      name: "shui",
      userInfo: {}
    };
  },
  getters: {},
  actions: {},
  mutations: {
    setName(state: ILoginState, playload: string) {
      console.log(playload);
      state.name = playload;
    }
  }
};
export default login;
